package cqrtplm.entity;

import com.ty.basic.entity.CTyEntityBaseDO;
import com.ty.basic.util.TyOtype;
import cqrtplm.constant.RTTableTypeConstant;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigInteger;


@Data
@Entity
@Table(name = "RT_CFG_CUSTOMER_NODE_INFO")
@TyOtype(
        displayName = RTTableTypeConstant.TYPE_CUSTOMER_NODE_INFO
)
public class RtCustomerNodeInfoDO extends CTyEntityBaseDO {

    @Id
    @Column(name = "OID")
    private BigInteger oid;

    @TyOtype(
            name = RTTableTypeConstant.TYPE_CUSTOMER_NODE_INFO
    )
    @Column(name = "OTYPE")
    private String otype = RTTableTypeConstant.TYPE_CUSTOMER_NODE_INFO;

    @Column(name = "CUSTOMER")
    private String customer;

    @Column(name = "NODE_NAME")
    private String nodeName;

    @Column(name = "PUSH_CONTENT")
    private String pushContent;

    @Column(name = "NEW_PERSON_ADDED")
    private String newPersonAdded;

    @Column(name = "MODIFIED_BY")
    private String modifiedBy;

    @Column(name = "TERMINATING_PERSON")
    private String terminatingPerson;

    public RtCustomerNodeInfoDO(BigInteger oid, String otype, String customer, String nodeName, String pushContent) {
        super(oid, otype);
        this.customer = customer;
        this.nodeName = nodeName;
        this.pushContent = pushContent;
    }

    public RtCustomerNodeInfoDO() {

    }
}